<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>图片列表</title>
</head>
<style type="text/css">
    body{
       margin:0;
       padding:0; 
    }
    ul li{
        list-style:none;
        width:200px;
        height:300px;
        /*border:1px solid red;*/
        float:left;
        margin:10px;
    }
    form{
        margin:30px;
        clear:both;
        padding-top: 20px;
    }
    a{
        text-decoration: none;
        color:rgb(123,123,123);
    }
</style>
<body>
        <ul>
            @foreach($pic as $v)
            <li>
                <img src='/images/{{$v->pic}}' width="190" height="290">
                <a href='/del/{{$v->id}}'>删除</a>
            </li>
            @endforeach
        </ul>

        <form  action="/doUpload" method="post" enctype="multipart/form-data">
                {{csrf_field()}}
                <input type="file" name="img">      
                <input type="submit" value="添加" >  
        </form>
</body>
</html>